// BMS Fault types and interfaces
export interface BMSFaultItem {
  id: string;
  batteryPackSn: string;
  deviceSn: string;
  alertName: string;
  batteryType: string;
  capacity: number;
  predictedTime: string;
  detectTime: string;
  status: string;
}

// API响应接口
export interface BMSFaultResponse {
  code: number;
  msg: string;
  data: {
    total: number;
    list: BMSFaultItem[];
  };
}

// 故障状态选项
export const faultStatusOptions = [
  { value: "", label: "All status" },
  { value: "open", label: "Open" },
  { value: "close", label: "Close" }
];

// 告警名称选项（根据API文档）
export const alertNameOptions = [
  { value: "", label: "All alert name" },
  { value: "1", label: "SOC高压差大故障" },
  { value: "2", label: "SOC低压差大故障" },
  { value: "3", label: "过放故障" },
  { value: "4", label: "温度传感器故障" },
  { value: "5", label: "单节电压过高故障" },
  { value: "6", label: "压差斜率故障" },
  { value: "7", label: "电压传感器故障" }
];

// 电池类型选项
export const batteryTypeOptions = [
  { value: "", label: "All battery type" },
  { value: "AB1000", label: "AB1000" },
  { value: "AB2000", label: "AB2000" },
  { value: "LFP6000", label: "LFP6000" },
  { value: "LFP8000", label: "LFP8000" }
];
